<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>循环语句</title>
    <script>
        for (var i = 0; i < 5; i++) {
            console.log('for--->' + i)
        }

        var w = 0;
        while (w<5){
            console.log("while-->" + w);
            w++;
        }

        var d = 0;
        do{
            console.log("do_while-->"+d)
            d++;
        }while (d<5);
    </script>
</head>
<body>

</body>
</html>